@import "./common";

.news{
    .container{
        h2{
            font-size: 30px;
            color: #ff6b08;
            margin-top: 38px;
            margin-bottom: 32px;
        }
        .news-img{
            width: 100%;
            display: flex;
            // flex-wrap: wrap;
            justify-content: space-between;
            .mask-one{
                position: relative;
                border: 1px solid #eeeeee;
                .mask{
                    width: 100%;
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    opacity: .7;
                    background-color: black;
                    color: #fff;
                    text-align: center;
                    font-size: 14px;
                    padding: 10px 0 10px;
                }
            }
        }
    }
}

.news-detail{
    padding-top: 60px;
    padding-bottom: 60px;
    .container{
        position: relative;
        .row{
            display: flex;
            flex-wrap: wrap;
            .news-wrapper{
                margin-top: 26px;
                .detail-img{
                    .img-box{
                        img{
                            width: 100%;
                        }
                    } 
                }
                 
                .detail-text{
                    display: flex;
                    flex-direction: column;
                    
                     p{
                         font-size: 13px;
                         padding-right: 16px;
                     }
                     p:nth-child(1){
                         font-size: 18px;
                         color: #ff6900;
                     }
                     button{
                         background-color: #ff6900;
                         border-radius: 25px;
                         color: #fff;
                         padding: 6px 22px;
                         border: none;
                         font-size: 14px;
                         align-self: flex-end;
                     }
                }
            }  
        }  
    }
    .container::after{
        content: "";
        position: absolute;
        bottom: -58px;
        left: 0;
        width: 100%;
        border-bottom: 2px dashed #d4d4d4;
    }
}



    .page{
        display: flex;
        justify-content: center;
        margin-top: 26px;
        margin-bottom: 20px;
        li{
            float: left;
            border: 1px solid #dddddd;
            padding: 4px 8px 4px 8px;
        }
        li:nth-child(3){
            background-color: red;
        }
    }

    .page::after{
        content: "";
        display: block;
        clear: both;
    }


@media screen and (min-width: 992px) and (max-width: 1200px){
    .news{
        .container{
            h2{
                margin-top: 40px;
                margin-bottom: 36px;
            }
        }
    }
}

@media screen and (min-width: 768px) and (max-width: 992px){
    .news{
        .container{
            h2{
                font-size: 22px;
                margin-top: 30px;
                margin-bottom: 24px;
            }
            .news-img{
                .mask-one{
                    img{
                        width: 100%;
                    }
                    .mask{
                        font-size: 12px;
                    }
                }
            }
        }
    }

    .news-detail{
        padding-top: 40px;
        .container{
            .row{
                .news-wrapper{
                    .detail-text{
                        p{
                            margin-bottom: 0;
                        }
                        p:nth-child(1){
                            font-size: 15px;
                        }
                        button{
                            font-size: 12px;
                            padding: 4px 8px;
                            border-radius: 20px;
                        }
                    }
                }
            }
        }
    }

    .page{
        li{
            font-size: 13px;
            padding: 3px 6px 3px 6px;
        }
    }
}

@media screen and (max-width: 768px){
    .news{
        .container{
            h2{
                font-size: 20px;
                margin-top: 28px;
                margin-bottom: 6px;
            }
            .news-img{
                // flex-direction: column;
                .mask-one{
                    width: 32%;
                    // margin: 20px auto;
                    margin-top: 20px;
                    
                    img{
                        width: 100%;
                    }
                    .mask{
                        font-size: 12px;
                        padding: 0;
                    }
                }
            }
            
        }
    }

    .news-detail{
        padding-top: 14px;
        padding-bottom: 30px;
        .container{
            .row{
                // align-content: space-around;
                .news-wrapper{
                    margin-top: 12px;
                    // display: flex;
                    // align-items: center;
                    .detail-text{
                        // display: flow-root;
                        padding-left: 10px;
                        button{
                            font-size: 12px;
                            padding: 2px 2px;
                            margin-top: 0;
                        }
                        p{
                            margin-bottom: 0;
                            font-size: 12px;
                            line-height: 16px;
                        }
                        P:nth-child(1){
                            font-size: 12px;
                            margin-top: 8px;
                            margin-bottom: 0;
                            line-height: 16px;
                        }
                        
                    }
                    .detail-img{
                        
                        padding: 12px 4px 0 12px;
                    //     .img-box{
                    //         img{
                    //             width: 30%;
                    //         }
                    //     }
                    }
                }   
            }
        }
        .container::after{
            content: "";
            position: absolute;
            bottom: -32px;
            left: 0;
        }
    }

    .page{
        li{
            font-size: 12px;
            padding: 2px 4px 2px 4px;
        }
    }
}
